<!DOCTYPE html>
<html lang="en">
<head>
        <?php include_once VIEWS.'/inc/head.php'; ?>

</head>
<body>
 <div class="box"></div>

    <?php include_once VIEWS.'/inc/header.php'; ?>
    <!--头部导航-->
     <?php include_once VIEWS.'/inc/nav.php'; ?>
     <!--分隔-->
  <div class="wrap clear">
       
    
        <!--banner大图-->

<?php 
	if(isset($_GET['news_id'])){
		$nid=$_GET['news_id'];
		$info=$this->db->get_where('article',array('id'=>$nid))->row_array()?$this->db->get_where('article',array('id'=>$nid))->row_array():$this->db->get_where('article',array('date(FROM_UNIXTIME(timeline))'=>$nid))->row_array();
		$back=date('Y-m-d',$info['timeline']);
	}
?>
<?php if(isset($info['id'])):?>
        <div class="about clear">
            <div class="about_cen">
                <div class="about_top">
                    <span><?php echo $info['title'];?></span>
                </div>
                <div class="about_bot">
                    <?php echo $info['content'];?>
                </div>

                <div class="news_nx nsad">
                    <a href="<?php echo  site_url("activity/list?id=".$back); ?>"><i>返回</i></a>
                </div>
            </div>

        </div>
<?php 
    else:
    header("Location:".site_url('activity/index'));
    exit;
?>
<?php endif;?>
      <!--分隔-->

  </div>





 
    <!--商业区域-->



</body>
</html>

